import axios from 'axios'
const http = axios.create({
    baseURL: 'http://localhost:3000',
    timeout: 5000,
    headers: {}
})
axios.defaults.widthCredentials = true;

axios.interceptors.request.use(function (config) {
    return config;
}, function (error) {
    return Promise.reject(error);
});

axios.interceptors.response.use(function (response) {
    return response;
}, function (error) {
    return Promise.reject(error);
});

export default http
// module.exports = {
//     http
// }